package com.wms.common.exception;

import java.util.List;


public class CIException extends BaseException {
	private static final long serialVersionUID = 1L;
	/**
	 * Default constructor
	 */
	public CIException(){
		super();
	}
	
	/**
	 * Constructor
	 * @param errorCode
	 */
	public CIException(String errorCode){
		super(errorCode);
	}
	
	/**
	 * Constructor
	 * @param errorCode
	 * @param args
	 */
	public CIException(String errorCode , List args){
		super(errorCode);
		this.setArgs(args);
	}
	
	public CIException(Exception e){
		super(e);
		if(e instanceof BaseException){
			BaseException be = (BaseException)e;
			this.setArgs(be.getArgs());
			this.setErrorCode(be.getErrorCode());
		}
	}
}
